﻿using System;
using System.Collections.Generic;
namespace CoreSoft.Frame.Entity
{

    [Serializable]
    /// <summary>
    /// batchcodeseq 
    /// 数据表:batchcodeseq
    /// </summary>
    public class Batchcodeseq
    {
        #region 构造函数
        public Batchcodeseq()
        {
        }
        #endregion
        
        #region 表字段
        /// <summary>
        /// 主键
        /// </summary>
        public String Id
        {
            get;
            set;
        }
        
        /// <summary>
        /// 批次号
        /// </summary>
        public String BatchCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 物料号
        /// </summary>
        public String CinvCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 供应商
        /// </summary>
        public String VendorCode
        {
            get;
            set;
        }
        /// <summary>
        /// 组织ID
        /// </summary>
        public String OrgID
        {
            get;
            set;
        }
        /// <summary>
        /// 批次规则
        /// </summary>
        public String RuleCode
        {
            get;
            set;
        }

        public DateTime? CTime
        {
            get;
            set;
        }
        public int? SeqNum
        {
            get;
            set;
        }
        #endregion
        #region 验证字段是否可以为空
        public List<string> Validation()
        {
            List<string> vMsgList=new List<string>();
            
                    if(Id==null){
                          vMsgList.Add("主键不可以为空！");
                    }
                    else{
                        if(Id.ToString().Trim()=="")
                        {
                              vMsgList.Add("主键不可以为空！");
                        }
                    }
                 
                    if(BatchCode==null){
                          vMsgList.Add("批次号不可以为空！");
                    }
                    else{
                        if(BatchCode.ToString().Trim()=="")
                        {
                              vMsgList.Add("批次号不可以为空！");
                        }
                    }
                 
            return vMsgList;
        }
        
        
        #endregion
    }
}